package com.ruoyi.system.domain.vo.reportstatistics;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 告警统计
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
@ToString
public class AlarmStatistics {
    //车牌号
    @Excel(name = "车牌号")
    private String numberPlate;
    //设备号
    @Excel(name = "设备号")
    private String deviceId;
    //所属公司
    @Excel(name = "所属公司", width = 30)
    private String companyName;
    //报警类型名称
//    @Excel(name = "报警类型", width = 30)
    private String name;
    //报警等级名称
    @Excel(name = "报警等级")
    private String levelName;
    //报警时长
    @Excel(name = "报警时长(分钟)")
    private Double minutes;
    //报警次数
    @Excel(name = "报警次数")
    private Integer count;
    //统计日期
    @Excel(name = "开始时间", dateFormat = "yyyy-MM-dd  HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    //统计日期
    @Excel(name = "结束时间", dateFormat = "yyyy-MM-dd  HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    //报警来源
    @Excel(name = "报警来源")
    private String sourceName;
    //公司ID
    private Long companyId;
    //公司简称
    private String companyShortName;
    //车辆名称
    private String vehicleName;
    //驾驶员
    private String driverName;
    //告警类型
    private Integer type;
    //告警级别 0：低风险 1：中风险 2：高风险
    private Integer level;
    //告警来源 0：设备 1：平台
    private Integer source;
}
